<!DOCTYPE html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <link rel="stylesheet" href="./css/index.css" />
</head>

<body>
    <h1>HTML &lt;link&gt; 标签</h1>

    <h2>定义与用法</h2>

    <h3>参考链接</h3>
    <p><a target="_blank" href="https://www.w3school.com.cn/tags/tag_link.asp">HTML &lt;link&gt; 标签</a></p>

    <h3>摘抄</h3>
    <p>&lt;link&gt; 标签定义文档与外部资源的关系。</p>
    <p>&lt;link&gt; 标签最常见的用途是链接样式表。</p>

    <h3>示例</h3>

    <h4>指定HTML文档的图标</h4>
    <pre>
&lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; href=&quot;img/logo.jpg&quot; /&gt;
    </pre>

    <h4>指定HTML文档外部CSS样式</h4>
    <pre>
&lt;link rel=&quot;stylesheet&quot; href=&quot;./css/index.css&quot; /&gt;
    </pre>
    
</body>

</html>